Global Index
HTML5 JS API Index > Indexed DB Tutorials & Specs

IDBRequest

Extends EventTarget.

Extended by IDBOpenDBRequest
Properties
DOMError
error
When the done flag is true, getting this property MUST return the error of the request. This is null when no error occurred. When the done flag is false, getting this property MUST throw a DOMException of type InvalidStateError.
EventHandler
onerror
The event handler for the error event.
EventHandler
onsuccess
The event handler for the success event.
IDBRequestReadyState
readyState
When the done flag is false, returns "pending", otherwise returns "done".
any
result
When the done flag is true, getting this property MUST return the result of the request. This is undefined when the request resulted in an error. When the done flag is false, getting this property MUST throw a DOMException of type InvalidStateError.
(IDBObjectStore or IDBIndex or IDBCursor)
source
Getting this property MUST return the source for the request. Returns null when there is no source set.
IDBTransaction
transaction
Getting this property MUST return the transaction for the request. This property can be null for certain requests, such as for request returned from IDBFactory.open.
Referenced by
IDBCursorupdate(...)
IDBIndexopenKeyCursor(...)
IDBObjectStoreput(...)